function has_illegalsymbols(){
	//<>:"/ \|@%*?'&
	var conditions = $("#conditions").val();
	conditions = conditions.replace(/,/g,"")
	conditions = conditions.replace(/-/g,"")
	var pattspaces=/\s/g;
	var spaces = conditions.match(pattspaces);
	var specialpatt = /\W/g;
	var specials = conditions.match(specialpatt);
	if (spaces != null || specials != null){
		return true;
	}
	/*conditions = $("#conditions").val();
        var carray = conditions.split(",");
        for (var c in carray){
            if (carray[c].length > 6){
                return true;
            }
        }*/

	var samples = $("#unsamples").val();
        samples = samples.replace(/,/g,"")
        samples = samples.replace(/-/g,"")
        var uspaces = samples.match(pattspaces);
        var uspecials = samples.match(specialpatt);
        if (uspaces != null || uspecials != null){
                return true;
        }	
	
	samples = $("#unsamples").val();
	var sarray = samples.split(",");
	for (var s in sarray){
	    if (sarray[s].length > 6){
		return true;
	    }
	}

	return false;
}

